Getting Started
Installation / Set Up
Create an account on Portal with your school email.
Tip
Check the box “Remember Me” for QLabs to remember your account
Download Quanser Interactive Lab on the Portal
Note
All available content should be available to you on the main screen. If something is missing, try logging out and logging back in again.
Scroll using a mouse wheel or the arrow keys on either side of the screen to the QCar studio. Alternatively you can also right-click and drag left/right to scroll through available modules.
Click on the QCar studio and select the workspace of choice.
Running a Python Script for QLabs SDCS
In order to run a python script in QLabs to control the enviroment and its objects, a few things that will need to be installed first.
Prerequisites
GitHub QLabs Libraries Download
Download the common library off Github which will be needed in order to run the objects in your python script for QLabs Virtual QCar Libraries.
Download Python
If you don’t already have python installed on your computer, you can download it from here.
We have currently tested compatibility with Python 3.
Important
Ensure that you check the box that says ‘Add Python to Path’ when installing python.
Download OpenCV-Python
In the command terminal running as an admin (or in Linux running “sudo”), paste and run this code to install opencv on the computer.
pip install opencv-python
Python Package Update
Quanser has a set of python packages that need to be installed as well to run with your QUARC. In order to do this, navigate to your QUARC python folder.
Note
You will need to have QUARC installed for this to work.
Important
Make sure the files in the QUARC python folder below have the same date as the date in the following code below before running it!
# Type this into your Windows Command Prompt
cd %QUARC_DIR%\python
python -m pip install --upgrade --find-links "%QUARC_DIR%\python" "%QUARC_DIR%\python\quanser_api-2022.4.29-py2.py3-none-any.whl"
# Type this into your Linux Terminal
cd /opt/quanser/python
python3 -m pip install --upgrade --find-links /opt/quanser/python /opt/quanser/python/quanser_api-2022.4.29-py2.py3-none-any.whl
If you have trouble or for more information about this click here.
At this point you should be ready to build and run a test script!